﻿namespace Cos.Core.Attributes
{
    using System;

    using Microsoft.Practices.Unity.InterceptionExtension;

    public class InterceptorExecutingContextEventArg : EventArgs
    {
        private readonly IMethodInvocation input;

        public InterceptorExecutingContextEventArg(IMethodInvocation input)
        {
            this.input = input;
            this.Cancel = false;
        }

        public bool Cancel { get; set; }

        public IMethodInvocation Input
        {
            get { return this.input; }
        }
    }
}
